import request from '@/plugin/axios'
const BASE_URL = "/base/group"
export function groupList() {
  return request({
    url: BASE_URL + "/all",
    method: 'post',
  })
}

export function groupPage(data) {
  return request({
    url: BASE_URL + "/page",
    method: 'post',
    data
  })
}
export function groupAdd(data) {
  return request({
    url: BASE_URL + "/add",
    method: 'post',
    data
  })
}
export function groupUpdate(data) {
  return request({
    url: BASE_URL + "/update",
    method: 'post',
    data
  })
}
export function groupDelete(id) {
  return request({
    url: BASE_URL + "/del",
    method: 'post',
    data: { id }
  })
}